import java.util.Scanner;

public class Min {
    public static void main(String[] args) {
        Scanner scnaner = new Scanner(System.in);
        while(scnaner.hasNext()) {
            int a = scnaner.nextInt();
            int b = scnaner.nextInt();
            if(a == 0 || b == 0) {
                return;
            }
            if(a>=b) {
                if(a%b == 0) {
                    System.out.println(a);
                    break;
                }else if(a%b != 0) {
                    int c = isMin(a,b);
                    if(c == 0) {
                        System.out.println(b*a);
                        break;
                    }else {
                        System.out.println(b*a/c);
                        break;
                    }
                }
            }
            if (a<b){
                if(b%a == 0) {
                    System.out.println(b);
                    break;
                }else if(b%a != 0) {
                    int c = isMin(b,a);
                    if(c == 0) {
                        System.out.println(b*a);
                        break;
                    }else {
                        System.out.println(b*a/c);
                        break;
                    }
                }
            }
        }
    }
    public static int isMin(int a,int b) {
        int c = a%b;
        if(b%c ==0 && a % c == 0) {
            return c;
        }else {
          c = isMin(b,c);
          return c;
        }
    }
}
